package com.yhao.stock.controller;


import com.yhao.stock.common.service.THSService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 板块信息 前端控制器
 * </p>
 *
 * @author yhao
 * @since 2023-11-13
 */
@RestController
@RequestMapping("/plateInfo")
public class PlateInfoController {

    @Autowired
    private THSService thsService;

    @GetMapping("/getDayInfo")
    public String getDayInfo() {
        // https://q.10jqka.com.cn/thshy/index/field/13/order/desc/page/1/ajax/1/
        String baseUrl = "https://q.10jqka.com.cn/thshy/index/field/13/order/desc/page/";
        int pageCount = 2;
        thsService.getDayPlateInfo(pageCount, baseUrl);
        return "success";
    }

}
